#设置头文件
set(CONNECTION_MANAGER_HEADER
        connectionManger.h
)
#设置源文件
set(CONNECTION_MANAGER_SOURCES
        connectionManger.c
        ../../thridParty/uthash/uthash.h
)

#创建静态库
add_library(connection_manager STATIC ${CONNECTION_MANAGER_SOURCES})

#设置包含目录
target_include_directories(connection_manager
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

#连接线程库
target_link_libraries(connection_manager
        INTERFACE
        Threads::Threads
        atomic
)

